﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Security;
public partial class Form_Home : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    { 
    }
   
        
       

        //Session["Username"] = Login1.UserName;

        //MembershipUser user = Membership.GetUser(Login1.UserName);
        
        //    string[] user1 = Roles.GetRolesForUser(user.UserName);
        //    if (user1[0] == "Finance")
        //    {
        //        Response.Redirect(@"~/FinanceUsers/Home.aspx");
        //    }
        //    if (user1[0] == "Expert")
        //    {
        //        Response.Redirect(@"~/ExpertUsers/Home.aspx");

        //    }

    protected void Login1_LoggedIn(object sender, EventArgs e)
    {
        
        MembershipUser user = Membership.GetUser(Login1.UserName);
        Session["Username"] = Login1.UserName;
    }
}
        
    

